package com.neusoft.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;

/**
 * 考勤表
 */
@ApiModel(description="考勤表")
@Data
@TableName(value = "attendance")
public class Attendance {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 员工id,关联employee.id
     */
    @TableField(value = "emp_id")
    @ApiModelProperty(value="员工id,关联employee.id")
    private Integer empId;

    /**
     * 考勤日期
     */
    @TableField(value = "`date`")
    @ApiModelProperty(value="考勤日期")
    private Date date;

    /**
     * 对应日历id,关联calendar.id
     */
    @TableField(value = "workday_id")
    @ApiModelProperty(value="对应日历id,关联calendar.id")
    private Integer workdayId;

    /**
     * 排班类型id,关联worktype.id
     */
    @TableField(value = "worktype_id")
    @ApiModelProperty(value="排班类型id,关联worktype.id")
    private Integer worktypeId;

    /**
     * 上班打卡时间
     */
    @TableField(value = "check_in_time")
    @ApiModelProperty(value="上班打卡时间")
    private Date checkInTime;

    /**
     * 下班打卡时间
     */
    @TableField(value = "check_out_time")
    @ApiModelProperty(value="下班打卡时间")
    private Date checkOutTime;

    /**
     * 考勤状态,0正常,1迟到,2旷工等
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="考勤状态,0正常,1迟到,2旷工等")
    private Byte status;
}